package com.book.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: 125715
 * @Package: com.book.model.vo
 * @Date: 2025/4/5 13:56
 * @Description: 书本信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "BookVO对象", description = "书本信息")
public class BookVO {

    @Schema(name = "书本ID")
    private String bookId;

    @Schema(name = "书名")
    private String name;

    @Schema(name = "作者")
    private String author;

    @Schema(name = "介绍")
    private String introduction;

    @Schema(name = "新旧程度")
    private String bookCondition;

    @Schema(name = "去处（用户ID）")
    private String destination;

    @Schema(name = "状态编码")
    private String statusCode;

    @Schema(name = "状态名称（可售、已售、待审核）")
    private String statusName;

    @Schema(name = "金额")
    private BigDecimal price;

    @Schema(name = "是否可用积分兑换（0否1是）")
    private Integer isPoints;

    @Schema(name = "可兑换积分")
    private Integer points;

    @Schema(name = "书本类别ID")
    private String bookCategoryId;

    @Schema(name = "用户ID,来源")
    private String userId;

    @Schema(name = "创建时间")
    private Date createTime;

    @Schema(name = "修改时间")
    private Date updateTime;

    @Schema(name = "书本图片")
    private String picture;

    @Schema(name = "0自1配")
    private Integer deliveryId;

    @Schema(name = "自提地址")
    private String place;

    @Schema(name = "书本详情ID")
    private String bookDetailId;

    @Schema(name = "原价")
    private BigDecimal originPrice;

    @Schema(name = "购买时间")
    private Date purchaseDate;

    @Schema(name = "书本类别名称")
    private String bookCategoryName;
}
